<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
	public $article;
	
	public function __construct(){
		parent::__construct();
		
		$this->article = D('Article');
	}
	
	
	public function index(){
        
		//栏目
		$category = M('Category')->where(array('cid'=>0))->select();
		$this->assign('cate',$category);	
		
		//文章
		
		$articleData = $this->article->selectData($where);
		$this->assign('articleData',$articleData);
		
		
		
		
    	$this->display();
    }
	
	/**
	 * 推荐文章
	 */
	public function recommend(){
		$articleData = $this->article->selectData($where);
		$this->assign('articleData',$articleData);
		$this->display();
	}
	
	/**
	 * 速递
	 */
	public function express(){
		$articleData = $this->article->selectData($where);
		$this->assign('articleData',$articleData);
		$this->display();
	}
	
	
	
}